import type { Writable } from 'svelte/store';

export type BreadcrumbItem = {
  label: string;
  href: string;
};

export type BreadcrumbContext = {
  activeBreadcrumb$: Writable<Number>;
  addBreadcrumb: (label: BreadcrumbItem) => number;
  getIndex: (label: BreadcrumbItem) => number;
  clickBreadcrumb: (index: number) => void;
}